package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.CameraDao;
import io.renren.modules.generator.entity.CameraEntity;
import io.renren.modules.generator.service.CameraService;



@Service("cameraService")
public class CameraServiceImpl implements CameraService {
	@Autowired
	private CameraDao cameraDao;
	
	@Override
	public CameraEntity queryObject(Integer cameraId){
		return cameraDao.queryObject(cameraId);
	}
	
	@Override
	public List<CameraEntity> queryList(Map<String, Object> map){
		return cameraDao.queryList(map);
	}
	@Override
	public int queryTotal(Map<String, Object> map){
		return cameraDao.queryTotal(map);
	}


	@Override
	public List<CameraEntity> timeList(Map<String, Object> map){return cameraDao.timeList(map);}
	@Override
	public int timeTotal(Map<String, Object> map){
		return cameraDao.timeTotal(map);
	}

	
	@Override
	public void save(CameraEntity camera){
		cameraDao.save(camera);
	}
	
	@Override
	public void update(CameraEntity camera){
		cameraDao.update(camera);
	}
	
	@Override
	public void delete(Integer cameraId){
		cameraDao.delete(cameraId);
	}
	
	@Override
	public void deleteBatch(Integer[] cameraIds){
		cameraDao.deleteBatch(cameraIds);
	}
	
}
